package com.bph.store.controller;

import com.bph.commons.vo.ResultVo;
import com.bph.store.service.StoreService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;


@RestController
@RequestMapping("/store")
public class StoreController {
    @Resource
    private StoreService storeService;

    /***
     *根据邮箱、获取店铺信息
     */
    @PostMapping("/getStoreByMail")
    public ResultVo getStoreBymail(HttpServletRequest request){
        return storeService.getStoreBymail(request);
    }
}